package com.bw.zg3park2212.adpter

import com.bw.base.entity.NewsEntity
import com.bw.base.entity.NewsEntityItem
import com.bw.zg3park2212.R
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder

class NewsSearchAdpter:BaseQuickAdapter<NewsEntityItem,BaseViewHolder>(R.layout.item_news) {
    override fun convert(helper: BaseViewHolder, item: NewsEntityItem) {
        helper.setText(R.id.news_content,item.content)
            .setText(R.id.news_time,item.publishDate)
            .setText(R.id.news_title,item.title)
    }
}